﻿namespace ContainerVariations.Common
{
    public interface IDoorUser
    {
        bool MayOpenDoor { get; }
    }

    public class DoorUser : IDoorUser
    {
        private readonly bool _mayOpenDoor;

        public DoorUser(bool mayOpenDoor)
        {
            _mayOpenDoor = mayOpenDoor;
        }

        public bool MayOpenDoor
        {
            get { return _mayOpenDoor; }
        }
    }
}